Sorting Nested Lists in two different orders

join shbcf.ru